import request from '@/utils/request'

// 查询练习记录详细列表
export function listPracticeRecordDetail(query) {
    return request({
        url: '/business/PracticeRecordDetail/list',
        method: 'get',
        params: query
    })
}

// 查询练习记录详细详细
export function getPracticeRecordDetail(practiceRecordDetailId) {
    return request({
        url: '/business/PracticeRecordDetail/' + practiceRecordDetailId,
        method: 'get'
    })
}

// 新增练习记录详细
export function addPracticeRecordDetail(data) {
    return request({
        url: '/business/PracticeRecordDetail',
        method: 'post',
        data: data
    })
}

// 修改练习记录详细
export function updatePracticeRecordDetail(data) {
    return request({
        url: '/business/PracticeRecordDetail',
        method: 'put',
        data: data
    })
}

// 删除练习记录详细
export function delPracticeRecordDetail(practiceRecordDetailId) {
    return request({
        url: '/business/PracticeRecordDetail/' + practiceRecordDetailId,
        method: 'delete'
    })
}
